using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Case : MonoBehaviour
{

    SpriteRenderer spriteRenderer;
    public Sprite caseOpenSprite;
    // Start is called before the first frame update
    void Start()
    {
        spriteRenderer = GetComponent<SpriteRenderer>();        
    }


    public void OnGetCaseKey(Unit_Item_Ctrl unit_Item_Ctrl){
        unit_Item_Ctrl.gameObject.SetActive(false);
        spriteRenderer.sprite = caseOpenSprite;
        EventHandler_Prop.CallCaseOpenEvent();                
    }

}
